package com.smart.community.region.vo;

import lombok.Data;
import java.util.List;

/**
 * 分页结果类
 * 
 * @author Wu.Liang
 * @since 2025-07-28
 */
@Data
public class PageResult<T> {
    private List<T> records;
    private Long total;
    private Integer current;
    private Integer size;
    private Integer pages;
    
    public PageResult(List<T> records, Long total, Integer current, Integer size) {
        this.records = records;
        this.total = total;
        this.current = current;
        this.size = size;
        this.pages = (int) Math.ceil((double) total / size);
    }
} 